<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>无标题文档</title>
		<style type="text/css">
#con {
	font-size: 12px;
	width: 660px;
	margin: 0px;
	float: left;
	height: 100%;
}

ol li {
	margin: 8px;
}

body {
	margin: 0px;
	padding: 0px;
	background-image: none;
	color: #0066cb;
	font-family: "宋体";
	font-size: 12px;
	height: 100%:
}

#tags {
	height: 29px;
	background-image: url(<%=basePath%>resource/img/index/list1.jpg);
	background-repeat: repeat-x;
	line-height: 29px;
	font-size: 14px;
	width: 660px;
	float: left;
	margin: 0px;
	padding-top: 0px;
	padding-right: 0px;
	padding-bottom: 14px;
	padding-left: 0px;
	background-position: left bottom;
	overflow: hidden;
}

#biaoti {
	height: 29px;
	background-image: url(<%=basePath%>resource/img/index/list1.jpg);
	background-repeat: repeat-x;
	line-height: 29px;
	font-size: 15px;
	width: 660px;
	float: left;
	margin: 0px;
	padding-top: 0px;
	padding-right: 0px;
	padding-bottom: 14px;
	padding-left: 0px;
	background-position: left bottom;
	overflow: hidden;
	font-weight: bold;
	color: #124071;
}

#tags li {
	float: left;
	list-style-type: none;
	height: 29px;
	background-image: url(<%=basePath%>resource/img/index/list1.jpg);
	background-repeat: repeat-x;
	background-position: left bottom;
	overflow: hidden;
	padding: 0px;
	margin-right: 5px;
	width: auto;
}

#tags li a {
	padding-left: 10px;
	float: left;
	padding-bottom: 0px;
	color: #002c58;
	line-height: 29px;
	padding-top: 0px;
	height: 29px;
	text-decoration: none;
	background-image: url(<%=basePath%>resource/img/index/1-2.jpg);
	background-repeat: no-repeat;
	background-position: left bottom;
	width: auto;
	font-family: "宋体";
	font-size: 13px;
	padding-right: 0px;
	overflow: hidden;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	margin-left: 0px;
}

#tags li a .bei {
	background-image: url(<%=basePath%>resource/img/index/1-3.jpg);
	background-repeat: no-repeat;
	background-position: right bottom;
	height: 29px;
	padding-top: 0px;
	padding-right: 10px;
	padding-bottom: 0px;
	padding-left: 0px;
	float: left;
	overflow: hidden;
}

#tags li.emptyTag {
	background: none transparent scroll repeat 0% 0%;
	width: 4px;
}

#tags li.selectTag {
	height: 29px;
	line-height: 29px;
	background-image: none;
	background-repeat: repeat;
	background-position: left top;
	position: relative;
	float: left;
}

#tags li.selectTag a {
	line-height: 29px;
	background-image: url(<%=basePath%>resource/img/index/1-1.jpg);
	background-repeat: no-repeat;
	background-position: left bottom;
	float: left;
	height: 29px;
	padding-left: 10px;
	font-weight: bold;
	color: #FFF;
}

#tags li.selectTag a .bei {
	background-position: right bottom;
	color: #FFF;
	line-height: 29px;
	height: 29px;
	background-image: url(<%=basePath%>resource/img/index/1-4.jpg);
	background-repeat: no-repeat;
	padding-right: 10px;
	float: left;
}

#tagContent {
	background-color: #fff;
	padding: 0px;
	float: left;
	height: auto;
	width: 660px;
	border: 0px solid #aecbd4;
}

.tagContent {
	display: none;
	color: #0066cb;
	height: auto;
	overflow: hidden;
	padding-bottom: 10px;
	float: left;
	width: 660px;
}

#tagContent div.selectTag {
	display: block;
	float: left;
}

.list-1 {
	background-image: url(<%=basePath%>resource/img/index/list-1.jpg);
	background-repeat: no-repeat;
	background-position: left center;
	text-align: left;
	float: right;
	height: 24px;
	width: 93px;
	line-height: 24px;
	color: #002C58;
	padding-left: 4px;
}

/*CSS sabrosus style pagination*/
DIV.sabrosus {
	PADDING-RIGHT: 3px;
	PADDING-LEFT: 3px;
	PADDING-BOTTOM: 3px;
	MARGIN: 3px;
	PADDING-TOP: 3px;
	TEXT-ALIGN: center
}

DIV.sabrosus A {
	BORDER-RIGHT: #9aafe5 1px solid;
	PADDING-RIGHT: 5px;
	BORDER-TOP: #9aafe5 1px solid;
	PADDING-LEFT: 5px;
	PADDING-BOTTOM: 2px;
	BORDER-LEFT: #9aafe5 1px solid;
	COLOR: #2e6ab1;
	MARGIN-RIGHT: 2px;
	PADDING-TOP: 2px;
	BORDER-BOTTOM: #9aafe5 1px solid;
	TEXT-DECORATION: none
}

DIV.sabrosus A:hover {
	BORDER-RIGHT: #2b66a5 1px solid;
	BORDER-TOP: #2b66a5 1px solid;
	BORDER-LEFT: #2b66a5 1px solid;
	COLOR: #000;
	BORDER-BOTTOM: #2b66a5 1px solid;
	BACKGROUND-COLOR: lightyellow
}

DIV.pagination A:active {
	BORDER-RIGHT: #2b66a5 1px solid;
	BORDER-TOP: #2b66a5 1px solid;
	BORDER-LEFT: #2b66a5 1px solid;
	COLOR: #000;
	BORDER-BOTTOM: #2b66a5 1px solid;
	BACKGROUND-COLOR: lightyellow
}

DIV.sabrosus SPAN.current {
	BORDER-RIGHT: navy 1px solid;
	PADDING-RIGHT: 5px;
	BORDER-TOP: navy 1px solid;
	PADDING-LEFT: 5px;
	FONT-WEIGHT: bold;
	PADDING-BOTTOM: 2px;
	BORDER-LEFT: navy 1px solid;
	COLOR: #fff;
	MARGIN-RIGHT: 2px;
	PADDING-TOP: 2px;
	BORDER-BOTTOM: navy 1px solid;
	BACKGROUND-COLOR: #2e6ab1
}

DIV.sabrosus SPAN.disabled {
	BORDER-RIGHT: #929292 1px solid;
	PADDING-RIGHT: 5px;
	BORDER-TOP: #929292 1px solid;
	PADDING-LEFT: 5px;
	PADDING-BOTTOM: 2px;
	BORDER-LEFT: #929292 1px solid;
	COLOR: #929292;
	MARGIN-RIGHT: 2px;
	PADDING-TOP: 2px;
	BORDER-BOTTOM: #929292 1px solid
}

.gongao p {
	margin-bottom:4px;
	margin-top:4px;
}
</style>
		<script src="<%=basePath%>resource/js/jquery-1.4.2.js"></script>
		<script language="javascript">
/*第一种形式 第二种形式 更换显示样式*/
function setTab(name,cursel,n){
 for(i=1;i<=n;i++){
  var menu=document.getElementById(name+i);
  var con=document.getElementById("con_"+name+"_"+i);
  menu.className=i==cursel?"hover":"";
  con.style.display=i==cursel?"block":"none";
 }
}


function reflashTime(time,id){
	var days = time.substring(3,time.indexOf("天"));
	var hours = time.substring(time.indexOf("天")+1,time.indexOf("小时"))
	var seconds = time.substring(time.indexOf("小时")+2,time.indexOf("分"))
	var minutes = time.substring(time.indexOf("分")+1,time.indexOf("秒"))
	if(days == 0){
		if(hours == 0){
			if(seconds == 0){
				if(minutes == 0){
					$('#'+id).html("已过期")
				}else{
					writeTime(days,hours,seconds,minutes,id);
				}
			}else{
				if(minutes == 0){
					seconds = seconds - 1;
					minutes = 59;
					writeTime(days,hours,seconds,minutes,id);
				}else{
					writeTime(days,hours,seconds,minutes,id);
				}
			}
		}
		else{
			if(seconds == 0){
				hours = hours - 1;
				seconds = 59
				if(minutes == 0){
					seconds = seconds - 1;
					minutes = 59;
					writeTime(days,hours,seconds,minutes,id);
				}else{
					minutes = minutes - 1;
					writeTime(days,hours,seconds,minutes,id);
				}
			}else{
				if(minutes == 0){
					seconds = seconds - 1;
					minutes = 59;
					writeTime(days,hours,seconds,minutes,id);
				}else{
					minutes = minutes - 1;
					writeTime(days,hours,seconds,minutes,id);
				}
			}
		}
	}else{
		if(hours == 0){
			hours = 23;
			days = days -1;
			if(seconds == 0){
				hours = hours - 1;
				seconds = 59
				if(minutes == 0){
					seconds = seconds - 1;
					minutes = 59;
					writeTime(days,hours,seconds,minutes,id);
				}else{
					minutes = minutes - 1;
					writeTime(days,hours,seconds,minutes,id);
				}
			}else{
				if(minutes == 0){
					seconds = seconds - 1;
					minutes = 59;
					writeTime(days,hours,seconds,minutes,id);
				}else{
					minutes = minutes - 1;
					writeTime(days,hours,seconds,minutes,id);
				}
			}
		}
		else{
			if(seconds == 0){
				hours = hours - 1;
				seconds = 59
				if(minutes == 0){
					seconds = seconds - 1;
					minutes = 59;
					writeTime(days,hours,seconds,minutes,id);
				}else{
					minutes = minutes - 1;
					writeTime(days,hours,seconds,minutes,id);
				}
			}else{
				if(minutes == 0){
					seconds = seconds - 1;
					minutes = 59;
					writeTime(days,hours,seconds,minutes,id);
				}else{
					minutes = minutes - 1;
					writeTime(days,hours,seconds,minutes,id);
				}
			}
		}
	}
	setTimeout("reflashTime('剩余："+days+"天"+hours+"小时"+seconds+"分"+minutes+"秒','"+id+"')",1000)
}

function writeTime(day,hours,second,minute,id){
	var str = "剩余：";
	if(day > 0)
		str += day+"天";
	if(hours > 0)
		str += hours+"小时";
	if(second > 0)
		str += second + "分";
	if(minute > 0)
		str += minute + "秒";
	$('#'+id).html(str);
}
</script>
		<script>
<!--
/*第一种形式 第二种形式 更换显示样式*/
function setTab(m,n){
 var tli=document.getElementById("menu"+m).getElementsByTagName("li");
 var mli=document.getElementById("main"+m).getElementsByTagName("ul");
 for(i=0;i<tli.length;i++){
  tli[i].className=i==n?"hover":"";
  mli[i].style.display=i==n?"block":"none";
 }
}

var nowDate = new Date();
var year = nowDate.getFullYear();
var month = nowDate.getMonth()+1;
var month2 = month + 1;
var year2 = month2 > 12?(year+1):year;
month2 = month2 > 12?(month2-12):month2;
var month3 = month + 2;
var year3 = month3 > 12?(year+1):year;
month3 = month3 > 12?(month3-12):month3;
var month4 = month + 3;
var year4 = month4 > 12?(year+1):year;
month4 = month4 > 12?(month4-12):month4;
var month5 = month + 4;
var year5 = month5 > 12?(year+1):year;
month5 = month5 > 12?(month5112):month5;
var month6 = month + 5;
var year6 = month6 > 12?(year+1):year;
month6 = month6 > 12?(month6112):month6;

var month7 = month + 6;
var year7 = month7 > 12?(year+1):year;
month7 = month7 > 12?(month7-12):month7;

var month8 = month + 7;
var year8 = month8 > 12?(year+1):year;
month8 = month8 > 12?(month8-12):month8;

var month9 = month + 8;
var year9 = month9 > 12?(year+1):year;
month9 = month9 > 12?(month9-12):month9;

var month10 = month + 9;
var year10 = month10 > 12?(year+1):year;
month10 = month10 > 12?(month10-12):month10;

var month11 = month + 10;
var year11 = month11 > 12?(year+1):year;
month11 = month11 > 12?(month11-12):month11;

var month12 = month + 11;
var year12 = month12 > 12?(year+1):year;
month12 = month12 > 12?(month12-12):month12;

function hidePg(id,obj){
	var display_value;
	var liObj1 = $("#"+id+"_1,#"+id+"_2,#"+id+"_3,#"+id+"_4,#"+id+"_5,#"+id+"_6");
	var liObj2 = $("#"+id+"_7,#"+id+"_8,#"+id+"_9,#"+id+"_10,#"+id+"_11,#"+id+"_12");
	var vv = $("#"+id+"_1").css("display");
	if(vv=="block"||vv==undefined||vv=="list-item"){
		liObj1.css('display','none');
		liObj2.css('display','block');
		obj.src='<%=basePath%>resource/img/index/ca_hz_003.jpg';
	}else{
		liObj2.css('display','none');
		liObj1.css('display','block');
		obj.src='<%=basePath%>resource/img/index/ca_hz_002.jpg';
	}
}
</script>
		<link href="<%=basePath%>resource/css/css.css" rel="stylesheet"
			type="text/css" />
		<link href="<%=basePath%>resource/css/pagination2.css"
			rel="stylesheet" type="text/css" />
		<script src="<%=basePath%>resource/js/pagination2.js"></script>
	</head>

	<body>
	<a name="0001" id="0001"></a>
		<div id="con">
			<ul id="tags">
				<s:if test="%{#typeId == null}">
					<li class="selectTag">
				</s:if>
				<s:else>
					<li>
				</s:else>
				<a href="javascript:selectTag('<s:property value="categoryId"/>','')"><span class="bei">全 部</span>
				</a>
				</li>
				<s:iterator value="#typeList" var="type">
					<s:if test="#type.id == #typeId">
						<li class="selectTag">
							<s:set name="categoryName" value="#type.name"></s:set>
					</s:if>
					<s:else>
						<li>
					</s:else>
					<a
						href="javascript:selectTag('<s:property value="categoryId"/>','<s:property value="#type.id"/>')"><span
						class="bei"><s:property value="name" />
					</span>
					</a>
					</li>
				</s:iterator>
			</ul>
			<div id="tagContent">
				<div class="tagContent selectTag" id="tagContent0">
					<table width="660" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td height="33"
								style="background: url(<%=basePath%>resource/img/index/list-2.jpg) repeat-x">
								<table width="660" border="0" cellspacing="0" cellpadding="0">
									<tr>
										<td style="padding-left: 9px">
											至今日：共有
											<s:property value="#categoryCount" />
											位业主参加了拼购
											<s:property value="#categoryName" />
											产品
										</td>
										<td>
											<div class="list-1">
												<a
													href="javascript:operwindow('<%=basePath%>/index/pinpai/pinpai.jsp?type=1')">品牌参加申请</a>
											</div>
										</td>
									</tr>
								</table>

							</td>
						</tr>
						<tr>
							<td>
								<div class="left-2-41">
									<ul>
										<s:iterator value="#pingouList.list">
											<li>
												<table width="658" border="0" cellspacing="0"
													cellpadding="0">
													<tr>
														<td width="75px" height="36px" align="left"
															valign="middle">
															<div class="left-2-5">
																&nbsp;
																<a target="_blank"
																	href="brand/detailShoper.shtml?id=<s:property value="brandId" />&categoryId=<s:property value="categoryId"/>">我要拼购</a>
															</div>
														</td>
														<td width="112px">
															<div class="left-tu">
																<a target="_blank"
																	href="brand/detailShoper.shtml?id=<s:property value="brandId" />&categoryId=<s:property value="categoryId"/>">
																	<s:if test="activityFlag == 1">
																	  <img name="act" src="<%=basePath%>resource/img/index/activity.gif"
																			style="position: absolute;" />
																	</s:if>		
																	<img
																		src="<s:property value="imgSrc" />" width="110"
																		height="34" /> </a>
															</div>
														</td>
														<td>
															<div class="left-2-7">
																<ul>
																	<s:if test="%{count1 > 10}">
																		<li class="huo"
																			id="pg_<s:property value="brandId" />_1">
																	</s:if>
																	<s:else>
																		<li id="pg_<s:property value="brandId" />_1">
																	</s:else>
																	<script>document.write(year+'-'+month+'月')</script>
																	<br />
																	<s:if test="%{count1 > 10}">
																		<font color="red"><s:property value="count1" />人</font>
																	</s:if>
																	<s:else>
																		<s:property value="count1" />人</s:else>
																	</li>
																	<s:if test="%{count2 > 10}">
																		<li class="huo"
																			id="pg_<s:property value="brandId" />_2">
																	</s:if>
																	<s:else>
																		<li id="pg_<s:property value="brandId" />_2">
																	</s:else>
																	<script>document.write(year2+'-'+month2+'月')</script>
																	<br />
																	<s:if test="%{count2 > 10}">
																		<font color="red"><s:property value="count2" />人</font>
																	</s:if>
																	<s:else>
																		<s:property value="count2" />人</s:else>
																	</li>
																	<s:if test="%{count3 > 10}">
																		<li class="huo"
																			id="pg_<s:property value="brandId" />_3">
																	</s:if>
																	<s:else>
																		<li id="pg_<s:property value="brandId" />_3">
																	</s:else>
																	<script>document.write(year3+'-'+month3+'月')</script>
																	<br />
																	<s:if test="%{count3 > 10}">
																		<font color="red"><s:property value="count3" />人</font>
																	</s:if>
																	<s:else>
																		<s:property value="count3" />人</s:else>
																	</li>
																	<s:if test="%{count4 > 10}">
																		<li class="huo"
																			id="pg_<s:property value="brandId" />_4">
																	</s:if>
																	<s:else>
																		<li id="pg_<s:property value="brandId" />_4">
																	</s:else>
																	<script>document.write(year4+'-'+month4+'月')</script>
																	<br />
																	<s:if test="%{count4 > 10}">
																		<font color="red"><s:property value="count4" />人</font>
																	</s:if>
																	<s:else>
																		<s:property value="count4" />人</s:else>
																	</li>
																	<s:if test="%{count5 > 10}">
																		<li class="huo"
																			id="pg_<s:property value="brandId" />_5">
																	</s:if>
																	<s:else>
																		<li id="pg_<s:property value="brandId" />_5">
																	</s:else>
																	<script>document.write(year5+'-'+month5+'月')</script>
																	<br />
																	<s:if test="%{count5 > 10}">
																		<font color="red"><s:property value="count5" />人</font>
																	</s:if>
																	<s:else>
																		<s:property value="count5" />人</s:else>
																	</li>
																	<s:if test="%{count6 > 10}">
																		<li class="huo"
																			id="pg_<s:property value="brandId" />_6">
																	</s:if>
																	<s:else>
																		<li id="pg_<s:property value="brandId" />_6">
																	</s:else>
																	<script>document.write(year6+'-'+month6+'月')</script>
																	<br />
																	<s:if test="%{count6 > 10}">
																		<font color="red"><s:property value="count6" />人</font>
																	</s:if>
																	<s:else>
																		<s:property value="count6" />人</s:else>
																	</li>

																	<s:if test="%{count7 > 10}">
																		<li class="huo"
																			id="pg_<s:property value="brandId" />_7"
																			style="display: none">
																	</s:if>
																	<s:else>
																		<li id="pg_<s:property value="brandId" />_7"
																			style="display: none; color: #536F50">
																	</s:else>
																	<script>document.write(year7+'-'+month7+'月')</script>
																	<br />
																	<s:if test="%{count7 > 10}">
																		<font color="red"><s:property value="count7" />人</font>
																	</s:if>
																	<s:else>
																		<s:property value="count7" />人</s:else>
																	</li>
																	<s:if test="%{count8 > 10}">
																		<li class="huo"
																			id="pg_<s:property value="brandId" />_8"
																			style="display: none">
																	</s:if>
																	<s:else>
																		<li id="pg_<s:property value="brandId" />_8"
																			style="display: none; color: #536F50">
																	</s:else>
																	<script>document.write(year8+'-'+month8+'月')</script>
																	<br />
																	<s:if test="%{count8 > 10}">
																		<font color="red"><s:property value="count8" />人</font>
																	</s:if>
																	<s:else>
																		<s:property value="count8" />人</s:else>
																	</li>
																	<s:if test="%{count9 > 10}">
																		<li class="huo"
																			id="pg_<s:property value="brandId" />_9"
																			style="display: none">
																	</s:if>
																	<s:else>
																		<li id="pg_<s:property value="brandId" />_9"
																			style="display: none; color: #536F50">
																	</s:else>
																	<script>document.write(year9+'-'+month9+'月')</script>
																	<br />
																	<s:if test="%{count9 > 10}">
																		<font color="red"><s:property value="count9" />人</font>
																	</s:if>
																	<s:else>
																		<s:property value="count9" />人</s:else>
																	</li>
																	<s:if test="%{count10 > 10}">
																		<li class="huo"
																			id="pg_<s:property value="brandId" />_10"
																			style="display: none">
																	</s:if>
																	<s:else>
																		<li id="pg_<s:property value="brandId" />_10"
																			style="display: none; color: #536F50">
																	</s:else>
																	<script>document.write(year10+'-'+month10+'月')</script>
																	<br />
																	<s:if test="%{count10 > 10}">
																		<font color="red"><s:property value="count10" />人</font>
																	</s:if>
																	<s:else>
																		<s:property value="count10" />人</s:else>
																	</li>
																	<s:if test="%{count11 > 10}">
																		<li class="huo"
																			id="pg_<s:property value="brandId" />_11"
																			style="display: none">
																	</s:if>
																	<s:else>
																		<li id="pg_<s:property value="brandId" />_11"
																			style="display: none; color: #536F50">
																	</s:else>
																	<script>document.write(year11+'-'+month11+'月')</script>
																	<br />
																	<s:if test="%{count11 > 10}">
																		<font color="red"><s:property value="count11" />人</font>
																	</s:if>
																	<s:else>
																		<s:property value="count11" />人</s:else>
																	</li>
																	<s:if test="%{count12 > 10}">
																		<li class="huo"
																			id="pg_<s:property value="brandId" />_12"
																			style="display: none">
																	</s:if>
																	<s:else>
																		<li id="pg_<s:property value="brandId" />_12"
																			style="display: none; color: #536F50">
																	</s:else>
																	<script>document.write(year12+'-'+month12+'月')</script>
																	<br />
																	<s:if test="%{count12 > 10}">
																		<font color="red"><s:property value="count12" />人</font>
																	</s:if>
																	<s:else>
																		<s:property value="count12" />人</s:else>
																	</li>
																	<li style="width: 41px;">
																		<img
																			src="<%=basePath%>resource/img/index/ca_hz_002.jpg"
																			style="cursor: pointer; margin-top: 6px;"
																			onclick="hidePg('pg_<s:property value="brandId" />',this)" />
																	</li>
																</ul>
															</div>
														</td>
														<td width="64px">
															<div class="left-2-6">
																总计
																<br />
																<s:property value="countAll" />
																人
															</div>
														</td>
													</tr>
												</table>
											</li>
										</s:iterator>
									</ul>
								</div>
							</td>
						</tr>
						<tr>
							<td height="70px" style="padding-bottom: 10px">
								<div id="pagenation"></div>
							</td>
						</tr>
					</table>
					<a name="0002" id="0002"></a>
					<table width="660px" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td>
								<div id="biaoti">
									<s:property value="#categoryName" />
									--限时拼抢
								</div>
							</td>
						</tr>
						<tr>
							<td >
								<div class="gongao" style="border: 1px solid #AFE5FE;padding: 10px">
									<s:property value="#anno.content"  escape="false"/> 
								</div>
							</td>
						</tr>
						<tr>
							<td height="33"
								style="background: url(<%=basePath%>resource/img/index/list-2.jpg) repeat-x">
								<table width="660" border="0" cellspacing="0" cellpadding="0">
									<tr>
										<td style="padding-left: 9px">
											至今日：共有
											<s:property value="#goodsCount" />
											位业主参加了抢购
											<s:property value="#categoryName" />
											产品
										</td>
										<td>
											<div class="list-1">
												<a
													href="javascript:operwindow('<%=basePath%>/index/pinpai/pinpai.jsp?type=2')">我要发布拼抢</a>
											</div>
										</td>
									</tr>
								</table>

							</td>
						</tr>
						<tr>
							<td>
								<div class="left-44">
									<ul>
										<s:iterator value="#pingiangList.list">
											<li>
												<table width="153" height="206" cellspacing="0"
													cellpadding="0">
													<tr>
														<td height="30px" align="left" valign="top">
															<div class="left-4-1">
																<nobr>
																<a target="_blank"
																	href="tgBrandMember/pingQiang.shtml?id=<s:property value="id"/>&categoryId=<s:property value="categoryId"/>"
																	title="<s:property value="name"/>"><s:property
																		value="name" />
																</a>
																</nobr>
															</div>

														</td>
													</tr>
													<tr>
														<td height="107" align="left">
															<div class="left-4-2">
																<s:if test="joinCount > 10">
																	<img src="<%=basePath%>resource/img/index/hot34.gif"
																		style="position: absolute;" />
																</s:if>
																<a target="_blank"
																	href="tgBrandMember/pingQiang.shtml?id=<s:property value="id"/>&categoryId=<s:property value="categoryId"/>"
																	title="<s:property value="name"/>"><img
																		src="<s:property value="imgSrc"/>" width="153"
																		height="107" />
																</a>
															</div>
														</td>
													</tr>
													<tr>
														<td>
															<div class="left-4-3">
																<table width="153" border="0" cellspacing="0"
																	cellpadding="0">
																	<tr>
																		<td height="20px" colspan="2" align="center">
																			原价:<s:property value="priceFormat" />&nbsp;抢购价:<span style="color: #ff3300; font-size: 14px; font-weight: 600"><s:property	value="uppriceFormat" /></span>
																		</td>
																	</tr>
																	<tr>
																		<td width="68px" height="31" align="left" valign="top">
																			<div class="left-4-4">
																				<a target="_blank"
																					href="tgBrandMember/pingQiang.shtml?id=<s:property value="id"/>&categoryId=<s:property value="categoryId"/>">&nbsp;去看看</a>
																			</div>
																		</td>
																		<td>
																			已有
																			<s:if test="joinCount > 10">
																				<font color="red"><s:property
																						value="joinCount" />
																				</font>
																			</s:if>
																			<s:else>
																				<s:property value="joinCount" />
																			</s:else>
																			人参与
																		</td>
																	</tr>
																	<tr>
																		<td height="17" colspan="2" align="center">
																			<span id="rtime_<s:property value="id"/>"><script>
																			reflashTime('<s:property value="activeTime"/>','rtime_<s:property value="id"/>');
								</script>
																			</span>
																		</td>
																	</tr>
																</table>

															</div>
														</td>
													</tr>
												</table>
											</li>
										</s:iterator>
									</ul>
								</div>
							</td>
						</tr>
						<tr>
							<td height="70px" style="padding-bottom: 20px">
								<div id="pagenation1"></div>
							</td>
						</tr>
					</table>
				</div>
			</div>
		</div>

		<script type="text/javascript">
function selectTag(showContent,selfObj){
	if(selfObj =="")
		window.location.href = '<%=basePath%>showCategoryContentList.shtml?categoryId='+showContent+'&categoryName=<s:property value="#categoryName"/>&marketId=<s:property value="#marketId"/>'
	else
		window.location.href = '<%=basePath%>showCategoryContentList.shtml?categoryId='+showContent+'&typeId='+selfObj+'&categoryName=<s:property value="#categoryName"/>&marketId=<s:property value="#marketId"/>'
}
function topage(pageNo,limit){
	var selfObj = '<s:property value="#typeId"/>';
	var showContent = '<s:property value="categoryId"/>';
	if(selfObj =='')
		window.location.href = '<%=basePath%>showCategoryContentList.shtml?categoryId='+showContent+'&categoryName=<s:property value="#categoryName"/>&pageNo='+pageNo+'&limit='+limit+'&pageNo2=<s:property value="#pingiangList.pageNo"/>&limit2=16&marketId=<s:property value="#marketId"/>';
	else
		window.location.href = '<%=basePath%>showCategoryContentList.shtml?categoryId='+showContent+'&typeId='+selfObj+'&categoryName=<s:property value="#categoryName"/>&pageNo='+pageNo+'&limit='+limit+'&pageNo2=<s:property value="#pingiangList.pageNo"/>&limit2=16&marketId=<s:property value="#marketId"/>';
		parent.$("#topFlag").focus();
}

pagination({
	totalRecords:'<s:property value="#pingouList.totalRecords"/>',
	pageNo:'<s:property value="#pingouList.pageNo"/>',
	limit:'20',
	showPages:6,
	uri:function(pageNo,limit){
	topage(pageNo,limit);
	},
	id:'pagenation'
})

function topage2(pageNo,limit){
	var selfObj = '<s:property value="#typeId"/>';
	var showContent = '<s:property value="categoryId"/>';
	if(selfObj =='')
		window.location.href = '<%=basePath%>showCategoryContentList.shtml?categoryId='+showContent+'&categoryName=<s:property value="#categoryName"/>&pageNo2='+pageNo+'&limit2='+limit+'&pageNo=<s:property value="#pingouList.pageNo"/>&limit=15&marketId=<s:property value="#marketId"/>#0002';
	else
		window.location.href = '<%=basePath%>showCategoryContentList.shtml?categoryId='+showContent+'&typeId='+selfObj+'&categoryName=<s:property value="#categoryName"/>&pageNo2='+pageNo+'&limit2='+limit+'&pageNo=<s:property value="#pingouList.pageNo"/>&limit=15&marketId=<s:property value="#marketId"/>#0002';
}

pagination({
	totalRecords:'<s:property value="#pingiangList.totalRecords"/>',
	pageNo:'<s:property value="#pingiangList.pageNo"/>',
	limit:'16',
	showPages:6,
	uri:function(pageNo,limit){
	topage2(pageNo,limit);
	},
	id:'pagenation1'
})
  function  operwindow(url){
     window.showModalDialog(url,0,'dialogHeight:200px;dialogWidth:320px;center:yes;help:no;status:no');
     
  }
  
  var hotObj = $(".left-2-7 .huo");
		hotObj.each(function(){
		var html =$(this).html();
			$(this).html('<img src="<%=basePath%>resource/img/index/hot_1.gif" class="hotImg" />'+html);
		});
	parent.setFRHeight($('#con').height())
	
	
	
		var browser = {};  
    var userAgent = navigator.userAgent.toLowerCase();  
    var s;  
    (s = userAgent.match(/msie ([\d.]+)/))  
            ? browser.ie = s[1]  
            : (s = userAgent.match(/firefox\/([\d.]+)/))  
                    ? browser.firefox = s[1]  
                    : (s = userAgent.match(/chrome\/([\d.]+)/))  
                            ? browser.chrome = s[1]  
                            : (s = userAgent.match(/opera.([\d.]+)/))  
                                    ? browser.opera = s[1]  
                                    : (s = userAgent  
                                            .match(/version\/([\d.]+).*safari/))  
                                            ? browser.safari = s[1]  
                                            : 0;  
    var version = "";  
    if (browser.ie) {  
        version = "msie " + browser.ie;  
    } else if (browser.firefox) {  
        version = "firefox " + browser.firefox; 
    } else if (browser.chrome) {  
        version = "chrome " + browser.chrome; 
        if(browser.chrome=='18.0.966.0')
        $("img[name='act']").css("margin-left","-55px");
    } else if (browser.opera) {  
        version = "opera " + browser.opera;  
    } else if (browser.safari) {  
        version = "safari " + browser.safari;  
    } else {  
        version = "未知浏览器";  
    }  

</script>

	</body>
</html>
